<html>
<head>
	<title>CanesCalendar :: Admin Panel</title>	
	
	<link rel="stylesheet" href="css/blueprint/screen.css" type="text/css" media="screen, projection">
	<link rel="stylesheet" href="css/blueprint/print.css" type="text/css" media="print">
	<!--[if lt IE 8]>
	  <link rel="stylesheet" href="css/blueprint/ie.css" type="text/css" media="screen, projection">
	<![endif]--></code></pre>
	
	<link href="css/main.css" title="External CSS" rel="stylesheet" type="text/css" media="screen">
</head>

<body>  
    <div class="container">	
		{% include "navbar.html" %}
<h2>Admin Panel</h2>
<h4>Statistics</h4>
{{ numProfessors }} professors in database<br />
{{ numCourses }} courses in database<br />
{{ numDepartments }} departments in database<br />
<br>
<form action="/admin" method="post">
    <input type="hidden" name="action" value="updateStats">
    <input type="submit" name="" value="Update">
</form>
<br /><br />

<h4>Choose a scraper to use</h4>
<form action="/admin" method="post">
    <input type="radio" name="group1" value="rmp">RateMyProfessor.com<br />
    <input type="radio" name="group1" value="myumrate">MyUM Ratings<br />
    <input type="radio" name="group1" value="myumcourse">MyUM Courses<br /><br />
    MyUM Username: <input type="text" name="username" /><br />
    MyUm Password: <input type="password" name="password" /><br /><br />
    <input type="hidden" name="action" value="scrape">
    <input type="submit" name="" value="Scrape">
</form>

<h4>Clear Model</h4>
<form action="/admin" method="post">
    <input type="radio" name="model" value="Department">Department<br />
    <input type="radio" name="model" value="Course">Course<br />
        <input type="radio" name="model" value="CourseTime">CourseTime<br />
    <input type="radio" name="model" value="Professor">Professor<br />
    <input type="radio" name="model" value="User">User<br />
    <input type="hidden" name="action" value="clear">
    <input type="submit" name="" value="Clear">
</form>
	
</body>
</html>